//
//  MoreXYViewController.m
//  HNJYB
//
//  Created by Mag1cPanda on 2016/12/22.
//  Copyright © 2016年 Mag1cPanda. All rights reserved.
//

#import "MoreXYViewController.h"
//#import "MoreTipsViewController.h"
#import "InsuranceReportVC.h"

@interface MoreXYViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *xyWebView;

@end

@implementation MoreXYViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"处理结果";
    
    if (!_isHistoryPush) {
        self.backBtn.hidden = YES;
        UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"确认" style:UIBarButtonItemStylePlain target:self action:@selector(confirmBtnClicked:)];
        self.navigationItem.rightBarButtonItem = rightItem;
    }
    
    NSURL *url = [NSURL URLWithString:_urlString];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [_xyWebView loadRequest:request];
    
     self.xyWebView.scalesPageToFit = YES;
}

- (IBAction)confirmBtnClicked:(id)sender {
    InsuranceReportVC *vc = [InsuranceReportVC new];
    [self.navigationController pushViewController:vc animated:YES];
}


-(void)backAction
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
